<?php
/**
 * Dependency abstract service
 *
 * PHP version 5
 *
 * @category  W
 * @package   Services
 * @author    Olivier Hoareau <olivier@phppro.fr>
 * @copyright 2009 PHPPRO http://www.phppro.fr
 * @license   http://dev.phppro.fr/license PHPPRO
 * @version   SVN: $Id:$
 * @link      http://dev.phppro.fr/projects/wdependency
 */
require_once 'W/Abstract/Service.php';
require_once 'W/Dependency/Interface.php';
/**
 * Dependency abstract service
 *
 * @category  W
 * @package   Services
 * @author    Olivier Hoareau <olivier@phppro.fr>
 * @copyright 2009 PHPPRO http://www.phppro.fr
 * @license   http://dev.phppro.fr/license PHPPRO
 * @version   SVN: $Id$
 * @link      http://dev.phppro.fr/projects/wdependency
 */
abstract class W_Dependency_Abstract extends W_Abstract_Service implements W_Dependency_Interface
{
    /**
     * @return W_Dependency_Interface
     */
    public final static function singleton($instance=null)
    {
        return W_Abstract_Service::_singleton(__CLASS__,$instance);
    }
    /**
     * @return W_Dependency_Interface
     */
    public final static function factory($adapter=null)
    {
        return W_Abstract_Service::_factory(__CLASS__,$adapter);
    }
}